package org.jeecg.modules.product.risk.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 管控措施信息
 * @Author: jeecg-boot
 * @Date:   2024-03-02
 * @Version: V1.0
 */
@Schema(description="管控措施信息")
@Data
@TableName("tb_base_control_measures")
public class TbBaseControlMeasures implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private String id;
	/**创建人*/
    @Schema(description = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建日期")
    private Date createTime;
	/**更新人*/
    @Schema(description = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @Schema(description = "所属部门")
    private String sysOrgCode;
	/**管控方式*/
	@Excel(name = "管控方式", width = 15, dicCode = "data_src")
    @Dict(dicCode = "data_src")
    @Schema(description = "管控方式")
    private String dataSrc;
	/**管控措施描述*/
	@Excel(name = "管控措施描述", width = 15)
    @Schema(description = "管控措施描述")
    private String riskMeasureDesc;
	/**隐患排查内容*/
	@Excel(name = "隐患排查内容", width = 15)
    @Schema(description = "隐患排查内容")
    private String troubleshootContent;
    /**管控措施1*/
    @Excel(name = "管控措施1", width = 15, dictTable = "tb_base_control_measures_type", dicText = "name", dicCode = "id")
    @Dict(dictTable = "tb_base_control_measures_type", dicText = "name", dicCode = "id")
    @Schema(description = "管控措施1")
    private String classify1;
    /**管控措施2*/
    @Excel(name = "管控措施2", width = 15, dictTable = "tb_base_control_measures_type", dicText = "name", dicCode = "id")
    @Dict(dictTable = "tb_base_control_measures_type", dicText = "name", dicCode = "id")
    @Schema(description = "管控措施2")
    private String classify2;
	/**管控措施分类3*/
	@Excel(name = "管控措施分类3", width = 15)
    @Schema(description = "管控措施分类3")
    private String classify3;
	/**删除标志*/
	@Excel(name = "删除标志", width = 15, dicCode = "yn")
    @Dict(dicCode = "yn")
    @Schema(description = "删除标志")
    private String deleted;
	/**人员岗位*/
	@Excel(name = "人员岗位", width = 15)
    @Schema(description = "人员岗位")
    private String personnelPosition;
	/**排查周期*/
	@Excel(name = "排查周期", width = 15)
    @Schema(description = "排查周期")
    private Integer period;
	/**周期单位*/
	@Excel(name = "周期单位", width = 15, dicCode = "period_type")
    @Dict(dicCode = "period_type")
    @Schema(description = "周期单位")
    private String periodUnit;
	/**数据来源*/
	@Excel(name = "数据来源", width = 15, dicCode = "source_type")
    @Dict(dicCode = "source_type")
    @Schema(description = "数据来源")
    private String source;
	/**风险事件*/
    @Excel(name = "风险事件", width = 15, dictTable = "tb_base_risk_events", dicText = "risk_event_name", dicCode = "id")
    @Dict(dictTable = "tb_base_risk_events", dicText = "risk_event_name", dicCode = "id")
    @Schema(description = "风险事件")
    private String riskEventId;

    /**租户ID*/
    private Integer tenantId;
}
